public class InnerClassDemo {

    public static void main(String[] args) {
        //创建外部类对象
        OuterClass outerClass=new OuterClass();
        outerClass.display();

        OuterClass.InnerClass innerClass=outerClass.new InnerClass();
        innerClass.showInfo();
    }

}
